<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head  th:replace="top::html"/>
<title>专家历史对接详情</title>
<body class="fixed hold-transition skin-blue">
	<div class="wrapper">
	
		<div th:replace="tophtml::html" ></div>
		<div th:replace="left::html" ></div>
		
		<div class="content-wrapper">
	    <!-- Content Header (Page header) -->
	   	<section class="content-header">
	   	   	<h1>
	   	      	专家历史对接详情<small></small>
	   	   	</h1>
	   	   	<ol class="breadcrumb">
				<li><a href="/index"><i class="fa fa-dashboard"></i>用户中心</a></li>
				<li><a href="/person/findPersonList">专家管理</a></li>
				<li><a th:href="@{/person/findButtDetailsList(pid=${person.pid})}">专家匹配需求详情</a></li>
				<li><a th:href="@{/person/findHistoryButtDetails(pid=${buttd.pid})}">专家历史对接详情</a></li>
			</ol><br/>
		   	<a th:href="@{/person/addDetailsView(pid=${buttd.pid})}" class="btn btn-primary">添加对接详情</a>
	       	<form id="from1">
	       		<input type="hidden" name="pageNo" id="pageNo" th:value="${pageInfo.pageNum}"/>
	       		<input type="hidden" name="pid" th:value="${buttd.pid}"> <!-- 详情id作为分页使用 -->
	       	</form>
			<div class="box">
	        	<div class="box-body">
	            	<table class="table table-bordered">
	                	<tbody>
	                		<tr>
	                 			<th>对接介绍</th>
	                 			<th>负责人</th>
	                  			<th>对接时间</th>
	                  			<th>对接状态</th>
	                  			<th>对接详情</th>
	                  			<th>对接附件</th>
	                		</tr>
			                <tr th:each="collect,iterStat : ${pageInfo.list}">
				            	<td>
					                <p style="font-weight: normal;" th:text="${collect.expertName}"></p>
					                <!-- 需求名称 -->
					                <p th:text="${not #strings.isEmpty(collect.demandName)} and ${#strings.length(collect.demandName)} > 20 ? ${#strings.substring(collect.demandName, 0, 20)}+'...' : ${collect.demandName}" 
                           			   th:title="${collect.demandName}"></p>
					                <p style="font-weight: normal;" th:text="${collect.projectName}"></p>
					                <p style="font-weight: normal;" th:text="${collect.customerName}"></p>
					                <p style="font-weight: normal;" th:text="${collect.confName}"></p>
					            </td>
					            <td th:text="${collect.buttName}"></td>
					            <td th:text="${collect.buttDataTime}"></td>
				                <td th:if="${collect.buttStatus==1}">沟通对接需求</td>
				               	<td th:if="${collect.buttStatus==2}">已签合作协议</td>
				                <td th:if="${collect.buttStatus==3}">执行对接任务</td>
				                <td th:if="${collect.buttStatus==4}">完成对接需求</td>
				                <!-- 对接详情 -->
               					<td th:text="${not #strings.isEmpty(collect.buttDetails)} and ${#strings.length(collect.buttDetails)} > 20 ? ${#strings.substring(collect.buttDetails, 0, 20)}+'...' : ${collect.buttDetails}" 
                            			th:title="${collect.buttDetails}"></td>
               					<td >
               						<a  th:if="${collect.buttaNnex}" th:href="@{'/person/download?fileName='+${collect.buttaNnex}}">对接附件</a>
               					</td>   
	                		</tr>
	              		</tbody>
	              	</table>
	            </div>
				<div th:replace="page::html" ></div>
				<!-- 返回按钮 -->
				<div style="width:240px; height: 30px; position:fixed;left:727px;bottom:10px;">
					<a href="/person/findPersonList" class="btn btn-primary">返回主页面</a>
					<button style="margin-left: 30px;" type="button" class="btn btn-primary" onclick="window.history.go(-1)">返回上一级</button>
				</div>
	          </div>
	    </section>
	    
	    <section class="content container-fluid">
	
	    </section>
	    
	  </div>
	  	<div th:replace="footer::html" ></div>
	  	<div class="control-sidebar-bg"></div>
	</div>
		<div th:replace="bottom::html" ></div>
</body>
</html>